﻿Public Module ModActions
    'represents base enumerations and operations for actions
    
#Region "Enums"
    'actions
    Public Enum GeAction
        ''general
        kkNoAction = 0
        kkOpenPathInExplorer = 1 'opens any path in MS Explorer
        kkLayoutDiagram = 2 'layout diagram
        kkBuildDiagram = 3 'builds diagram from dataset
        kkSaveAll = 4 'saves all = aMod solution, aMod versions, use case diagrams

        'tabs
        kkSetDesktopForFirstUsage = 10 'sets desktop for the first usage
        kkAddTab = 11 'adds tab to tabcontrol
        kkInitTab = 12 'initialization of tab for the first usage
        kkCloseTab = 13 'closing tab

        'aMod
        kkaModNewVersion = 30 'new version from aMod file
        kkaModCreateVirginFile = 31 'new physical aMod file with empty DS
        kkaModTryToOpenVersions = 32 'opens versions of DS from aMod file - creates new tab or opens version or focus opened version in existing tab
        kkaModTryToCompareVersions = 33 'compare versions of DS from aMod file - creates new tab or opens versions or focus opened versions in existing tab
        kkaModColorComparedVersion = 34 'colores one of the compared version according to DS with changes after comparison
        kkaModOpenFile = 35 'opens aMod file
        kkaModOpenVersion = 36 'opens version DS from aMod file when new tab is created for it
        kkaModSaveVersionAndFile = 37 'saves version into aMod DS and also save aMod file
        kkaModSaveFile = 38 'saves aMod file
        kkaModCloseVersion = 39 'closes aMod version
        kkaModCloseAllVersionsOfAmodFile = 40 'closes all opened versions of aMod file
        kkaModCloseAllAmodFilesAndTheirVersions = 41 'closes all opened aMod files and opened their versions
        kkaModSaveAllVersionsOfAmodFile = 42 'saves all opened versions of aMod file
        kkaModSaveAllAmodFilesAndTheirVersions = 43 'saves all opened aMod files and opened their versions
        kkaModCloseFile = 44 'closes aMod file
        kkaModOpenPathTarget = 45 'opens directory with aMod file
        kkaModVersionsManagement = 46 'opens form with aMod versions - allow to add, delete, compare versions, etc
        kkamodPromoteVersion = 47 'promotes version to actual one - last one
        kkaModDeleteVersions = 48 'deletes VERSIONS from aMod file
        kkaModUpdateHumanModuleName = 49 'changing human module name
        kkaModUpdateModuleName = 50 'changing module name - need to rename folder and aMod file
        kkaModTryToOpenUCDofModule = 51 'opens module use case diagram
        kkaModOpenUCDofModule = 52 'opens UCD diagram of module
        kkaModCloseUCDofModule = 53 'closes UCD tab
        kkaModSaveUCDofModuleAndFile = 54 'saves UCD diagram and aMod file
        kkaModMoveUpColumnOfTable = 55 'move up column of table
        kkaMOdMoveDownColumnOfTable = 56 'move down column of table

        'aMod exports
        kkaModExportAmodSolutionToProject = 100 'generating VS project from solution
        kkaModExportModuleToXmod = 101 'exports module to xMod
        'aMod imports
        kkaModImportModuleFromXmod = 200 'imports module from xMod
        kkamodImportUnitsFromForms = 201 'imports units from forms
        kkamodExportUnitsToForms = 202 'exports units to forms

        'aMod solution
        kkaModSolutionNewSolution = 300 'new aMod Solution file
        kkaModSolutionCreateVirginFile = 301 'new physical aMod Solution file with empty DS
        kkaModSolutionCloseFile = 302 'closes aMod Solution file
        kkaModSolutionOpenFile = 303 'opens aMod Solution file
        kkaModSolutionUpdateSolutionName = 304 'updates aMod Solution name
        'kkaModSolutionSaveAsFile = 305 'saves aMod Solution file to new location and creates directory for aMod files
        kkaModSolutionSaveFile = 306 'saves aMod Solution file
        kkaModSolutionOpenPathTarget = 307 'opens directory with aMod solution file
        kkaModSolutionAddJoinedModuleOfTableColumn = 308 'adding new joined module of table column
        kkaModSolutionRemoveJoinedModuleOfTableColumn = 309 'removing joined module of table column

        kkAddItemToDiagram = 400 'add item to diagram (table, link, unit,...)

        'diagram items
        kkAddContainerToDiagram = 401 'add container to diagram
        kkAddTableToDiagram = 402 'add table to diagram
        kkAddNoteToDiagram = 403 'add note to diagram
        kkAddModuleToDiagram = 404 'add module to diagram
        kkAddLinkToDiagram = 405 'add link to diagram
        kkAddColumnToTable = 406 'add column to table
        kkRemoveContainerFromDiagram = 407 'remove container from diagram
        kkRemoveTableFromDiagram = 408 'remove table from diagram
        kkRemoveNoteFromDiagram = 409 'remove note from diagram
        kkRemoveModuleFromDiagram = 410 'remove module from diagram
        kkRemoveLinkFromDiagram = 411 'remove link from diagram (relationship link or note link)
        kkRemoveColumnFromTable = 412 'remove column from table
        kkRemoveDiagramSelection = 413 'delete diagram selection

        'use case diagram items
        kkAddActorToDiagram = 501 'add actor to UCD
        kkAddActivityToDiagram = 502 'add activity node to UCD
        kkAddSystemBoundaryToDiagram = 503 'add system boundary to UCD
    End Enum
#End Region
End Module
